Sorry, my babies have never coughed up a hairball. They've thrown up other stuff though, Xena threw up a small lego once.

I wouldn't be too concerned but keep an eye out and see if it happens again. If it does I would call your vet and see if she's having digestion problems.