I worry that your children are learning that writing is a punishment, when they should in fact learn that writing is a joy. In my experience working in a school this is not effective in the long run. I would ground my children initially and then get them to sit down and discuss the rights and wrongs of what they have done at length. Perhaps making a brainstorm of where they went wrong and then another of how they should have behaved.