It's not actually a real phrase with a spelling.
Here's why it's a pun:
* Rote means learning something by repetition without understanding.
* Wrote is the past tense of the verb "write."
The joke is that someone who is forced to learn things by rote in hell would likely be "writing" (or suffering) in hell.