Your grant has been converted to a loan. So, it is no longer tax free assistance. You may claim a tuition credit based on the amount that was paid for tuition, even though you didn't complete the courses.
Did you get a form 1098-T from the school? What was in box 1 and box 5?