I had the same issue before. You have 2 choices: 1. Go out of the border and reenter before your Visa expires. 2. File a H1B extension.