The alternative was a land blockade and invasion and going house-to-house and killing everybody along the way until Japan surrendered.
Not only that, the Soviets would have gotten in, and taken their half of Japan, if not even more, and left Japan divided, just as Korea and Germany.