Only: He has been writing a composition since lunch time. He has written a composition implies that he has written an entire composition and this idea is not compatible with since lunch time. It has been raining all morning is the better tense choice of the two offered if it is still morning.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.