A transfer is not a new visa. You only have one H1B visa. You may continue to work for Company A, as long as they haven't cancelled your work authorization (which companies rarely do, even when they don't want you back).