Certainly, you are not liable twice. It needs to be determined whether the federal insured student loan proceeds were paid to the school - in which case you owe the debt to the lending agency ( and probably not dischargable on the facts given) or if the lender has not paid the school then you owe the school and this debt may be dischargable as a general unsecured debt.
Its a little unclear to me, but if what you are saying is that you took and spent the loan proceeds on something other than school - then you may have a non-dischargable debt to the lender and a dischargable debt to the school.
Consult your BK counsel with your concerns and examine the creditors proof of claims.
I am a licensed attorney in CA only. This is for general discussion purposes only and is NOT LEGAL ADVICE.
You really need to determine who the collection company is representing. If they represent the lender and they did in fact pay the school, then it sounds like you would owe the student loan. If for some reason the lender never paid the school, then you would owe the school ( i think this is less like because the school would have been paid early on - not when the semester was almost over).