When your I-94 expires and you have applied for an extension of your H1B visa, as long as you remain working for your qualified employer you may legally remain in the country for up to 240 days (or until the application for extension is rejected), so you should be fine.

