Maybe you need to talk to the second company to withdraw your H-1b application. But again, that is not nice to do so.