From the very beginning since Raze had entered the strange ruins, when he had noticed the type of magic and the enchantments that were being used, he was trying to figure out how it worked.
If he figured out how it worked, he could reverse and break the spell. One would quickly have to rewrite the magic enchantment, reversing and breaking it—either physically or doing it in one's mind.
Of course, writing another magic circle would be easier, allowing one to see everything that they were doing and if they would make a mistake or not. It was somewhat like doing an extremely long multiplication in one's mind.
Although there were those that could do it, there were those that would need to write it all down to get the correct answer. In this case, there was no time to write it all down, nor anything to write it with.
Raze had completely reverse-engineered the spell in his head, breaking it down, and now he was finally free.