If the status on your I94 is consistent with your expired visa status, for example, you were admitted to the US in F1 and your I94 also shows F1, then you should have no problem returning either by land or air. Otherwise, for example, if you were admitted to the US in J1 and later changed to F1 from within the U.S., you have an expired J1 visa, but a valid I94 showing your F1 status. You may have to consult with authorities to get an official verdict.