Cyber cell froze my account implying money that i received from friend is fraud money

It has been almost 1 month now, i received notice from email and sms that my account is frozen. I went on to my bank and manager gave me the number of officer(from gujarat) which i was told would help on my case. Officer told me that the money which i received(around 3300) was the fraud money and he asked me to provide my government ids - pan and adhar, bank details and questioned lots of transaction which i kept on answering. I came to know that 3300 was part of the big money(around 1.1Lakhs which now he tells around 2 lakhs) that came to me through my friend .one more friend to whom i sent rs 80 account has also been frozen. Prior to this I had given 3500 to my friend to deposit(since i didn't go to deposit) and that 3300 was the money which i ought to receive. I have been explaining my case to officer and fully cooperating with him. When i ask how can i unfreeze my account he says the only way is to return that 2 lakhs to whoever filed that case(but my account is frozen and since i am innocent why should i along with my friend be returning that whole money). Yesterday, he told whether we are ready to return that money if not he told fir will be issued on us. I am an student and i have no obligation to return whole money and my case is innocent. How can i solve this case? Will this case be solved on its own? If i had to take this case to court will my matter be solved, if yes how much cost are we looking at and how long might it take?