Seriously, talk to a lawyer. Don't try and get information from a forum for something of this magnitude and with such a short timeframe to do anything.
Here's what got you into this mess in the first place - you were not eligible to apply for a work permit from within Canada or at the Port of Entry. If you had left and applied from your home country, you wouldn't be facing this problem.