Yes, check with B, you don't left yourself many options
There's nothing wrong on salary negotiation. You had a very good position in the game, unfortunately you didn't play it right. Exposure of your job offer to another company by email is a big no-no.