The correct answer is: A. I was just about to go.

The other options are incorrect because they do not accurately describe the situation. Option B, "I would just go," implies that the speaker was planning to go to the market but had not yet started to go. Option C, "I'm just about to go," implies that the speaker is currently in the process of going to the market. Option D, "I've just about gone," implies that the speaker has already gone to the market.

The sentence "I was just about to go to the market, when it started to rain" describes a situation in which the speaker was planning to go to the market but was prevented from doing so by the rain. This is most accurately described by the word "just about," which means "almost but not quite." In this case, the speaker was almost but not quite at the market when the rain started.