The thing to most watch out for is whether Company B has the requisite labor certification to employ you. That's not something we can answer for you, but I'm assuming you have already checked that out.

In a "transfer" situation, there is only one H1B visa. There's no second/new visa.