B is still in possession, even though they won't be the next to put the ball in play. They can decline A's foul, and keep the ball, with the Illegal Block enforced from the spot. B's ball, 1 & 10 at the 50.
But A can then decline B's foul, and take the result of the play, touchback.