Japan's refusal to surrender - so as to bring an end to the vast war Japan started in Asia, and the separate war Japan joined with the Axis on when they declared war on the US and Britain - was the justification for the second bomb. The fact that they refused to surrender after being nuked once, very strongly makes the case that it was unlikely they were going to surrender without an invasion or more nuclear bombings.