Although you are legally in the country, you need a visa to re-enter the country upon departing. I don't know if the same applies to the American Embassy in Canada, but I know several students in your situation that have crossed into Mexico to obtain their F-1 visa stamped on their passport so...