Clarification

Last year there was bike burnt near our apartment and this happened at night between 9:45pm to 11:00pm. My 3 friends wer caught and enquired by police officers. Among 3 friends one of them got beaten up badly to say few more names and my friend took out my name so that police will stop beating. Later i went to police station and and i was enquired by Circle inspector. I told that i was not there when this incident happened and i do have proof saying that till 8:00 pm i was in office and i came near our apartment and took a move to restaurant to have dinner. After that my friend told that no sir he was not there but i took out name because you people would stop beating me up. After that police writer took our details and entered in form 169 and asked me to sign but i refused to sign and i checked it on google and it said it'll be for accused and then i asked writter about this he told me that it's just for an enquiry purpose boy if some higher police officials ask about this case we'll just show him the details. But now FIR has been filed and case has been registered without our knowledgeb ut police officers told us that it's just an petty case. I'm software engineer and by another 8 months i'll be leaving to abroad. I guess VISA will not be approved until this case is resolved. Please help regarding the same. Thank you