If you apply after your permit expires, you can stay in Canada but may not continue to study until your status has been restored and you have received your new study permit.
If I understand it correctly, you stopped studying after the expiration of your study permit and made an application for...