At base, there is an ethical justification for the dropping of the bomb on Hiroshima as the United States was ready to mount a full scale invasion of Japan from China.
However, the Japanese were not given adequate time to surrender and so the dropping of the bomb on Nagasaki was inexcusable.