While I don't normally encourage writing as a punishment, this particular assignment is an exception for me. Students are required to hand copy an essay of several paragraphs discussing disruptive behavior and how it takes away from the free education they get in this country (that many other countries do not get). Students have to take ownership for both the negative behavior displayed by writing down everything they did wrong; then they must think of and write down what they will do to make it right and how they will conduct themselves differently in the future.
It does work for many of my students, mainly because it makes them think about their behavior in order to get to participate in certain fun aspects of class again. Most of the time I use this when doing group activities or active lessons. The offending student is required to be isolated until the essay is copied and they seem to repent of their behavior.