As long as your H-1B extension is filed prior to the expiration date of your I-94 then there is a 240 day grace period.