l1b to h1b stay in USA

Hi i am on l1b until nov 2015.i filed my H1B on apr 2015.
i need to resign from my l1b company on July 15,i can stay until october 1st in USA? or can go to india and

stamp and come back to USA?
or is there any other way to stay back in US?