Your just coming out of jail? Hmmm, no comment.
To the point, usually texting is primarily for arranging day 2s- however, if youve not even met the girl as you met online I guess you need to build rapport more than a "live" pickup so to speak.
Texting is one of those things, where one person can read something and take it one way, another can read the exact same message and take it the opposite. Calling a girl crazy/mental etc has to be done in the right way. You should have dropped a "

" in there to take the edge of it and make her realise IMO. As silly as it sounds, that can make the difference..
Because getting a girl to talk about herself/ her and you in 3rd person is usually a good thing in my experience. ( It takes pressure off her and allows her to give a little more away I find)
Now thats what I would have done... its one little thing, maybe it would have made the difference....
As for what to do now. Without knowing more, I wouldnt worry too much, cancelling your date could make her more convinced you actually think she is a crazy
However if you owe her a drink, you have an in there... Your not in a rush by the sounds of it, so set a time when you can text to rearrange, maybe a couple of days after your out of jail, give yourself some time to sort your own shit out.
Go with something playful, "Hey crazy cotton candy muncher! When are you taking me out for that coffee you owe me?

"
Short, to the point, playful, half referencing your previous message you could have taken wrong, and letting her know how to take it...switching the tables on her to take you out, assume shes the one chasing you by doing that. ( But yeah, if you owe her, when she says its the otherway round just go with it).