Answer:
The sentence that is puctuated correctly is B. When the milk carton fell, it spilled; but I picked it up before all the milk flowed onto the floor.
Explanation:
Sentence B is punctuated correctly because the following puctuation rules are respected: