Virtually all the history I have read supports the conclusion that the Japanese leadership had no intention of surrendering despite their increasingly desperate situation. Much of the military resources remaining to Japan in 1945 were being diverted to the creation of vast kamikaze and kaiten fleets designed to wreck as much havoc as possible on any invasion fleet, even though the Japanese leadership recognized that the ultimate course of the war could not be reversed. The Japanese public was urged and organized to resist the inevitable invasion by any means possible, hand to hand using shovels, pitchforks, etc., without respite. Many of the Japanese public were convinced by propaganda that the Allies would be so vengeful and evil that collective fighting to the last person, perhaps ending in suicide, would be their best ultimate option rather than surrender.
There is evidence that the Japanese leadership was hoping that such a fanatical resistance might buy them a more favorable surrender than the unconditional one demanded by the Allies. But they clearly were willing to sacrifice a huge number of their own people (and of course to kill a huge number of the Allies) to do so.
And this is what I think about- the impact of an extended war on the Japanese, not just the Allies. Every day the war continued more and more Japanese died. The conventional bombings alone killed many thousands of civilians a night and burned down huge swaths of cities. If a blockade was successfully imposed by the Allies, the conventional bombings would undoubtedly have continued (in fact they even continued days after the atomic bombings until the actual surrender was announced). Plus how many more Japanese would have died from starvation and sickness? What would have been left in terms of infrastructure, industry, homes, etc? One of my professors had been 17 in 1945 and he had been trained as a kamikaze pilot: it was only the atomic bombings that spared him from his one-way mission. He understood the horror, but he also understood that he (and many of his fellow Japanese) would have been dead otherwise- he was grateful even recognizing how weird such a feeling was.
I've thought a lot about this and I am convinced that there was no obvious simple moral resolution. But just looking at the likely consequences, not using the atomic bombs would have led to much, much more death and horror on both sides than did using them. One could argue whether the choices of Hiroshima and Nagasaki as targets (and the the latter was a secondary target) were ethical or cynical (I have heard both sides and I simply don't know), but I think a "demonstration" bombing in a desert, etc, as proposed by some, would have been a very naive idea. And I have reached this conclusion even though I do think that the decision to use the atomic bombs on Japan was made easier by racism. Plus the political and moral issues facing Truman- imagine the reaction of the American public when, learning of this super weapon, had also learned that Truman chose not to use it, leading to the deaths of their husbands, brothers, cousins, and friends in an "unnecessarily" prolonged war!!
My bottom line: use of the atomic bombs on Japan was probably the best of the few options, all dreadful, available.