If there is a H1B visa on your passport, you can ask department of state to revalidate your visa. In that way, you can be ensured to have H1B visa issued when you go back and apply for H1B.