The correct answer is (B) got.
The sentence is about a sequence of events. The first event is "I got home." The second event is "it started raining heavily." The two events are related in that the second event happened immediately after the first event. This means that the verb in the blank should be in the simple past tense, which is the tense used to describe events that happened in the past.
The other options are not in the simple past tense. (A) get is in the present tense. (C) will have gotten is in the future perfect tense. (D) had gotten is in the past perfect tense.
Therefore, the correct answer is (B) got.