 The two atomic explosions at that time were meant as demonstrations more to the Soviets who were coming in across the island of Sakhalin to the north of Japan and through the Kuril Islands, and the US wanted to stop the Soviet forces from coming any further, and so they demonstrated that they had these weapons available. The war ending with Japan had already been decided by the Emperor at that time, and it wasn't the weapons which were,