lets get the timeline straight and the collusion of the allies clear: the atomic bomb was used august 6th. the soviets invaded august 8th. both events were essentially known to both parties; the US had alluded to a new weapon, the Soviets were obliged to enter within a 3 months deadline after VE. the US had specifically began a supply mission to assist Soviet operations in the theater (Project Hula). atomic weapons as a response to Soviet success is utterly unfounded. the bombs being a substitute for invasion is also unsupported, as far as the US warplanners knew they still might've had to invade, for which additional nukes were planned as beachhead weapons.
neither were the Soviets excluded from the peace. Soviet soldiers were not used to occupy the Home Islands (they liberated/accepted surrender north China/Korea) but participated in the allied occupation administration, securing left wing reforms and legality for the communists. these were reversed in '47, not exactly immediately.