Your id can be activated again by the migration office if you found not guilty in the case . Try to ask for re activation of your id and after that you can ask for temporary work permit.