It's bad to oversleep and miss your obligations.
Carlton is going to sleep after a wild party and sets his alarm, so he can get up for work.
Carlton wants to respond to his alarm.
Despite the urge to shut off his alarm, Carlton realizes this is risky and gets up from bed.
Carlton hears the loud beeping on his clock and shuts it off because he wants to rest his eyes a few more minutes.
Avoiding trouble with his boss, Carlton makes it to work and gets some extra sleep when he gets home.
Carlton falls back asleep and never makes it into work and is thus written up.