Funny thing - you might be giving yourself a few insights here.
"not as bad as I expected"
Whtat were you imagining and picturing in your mind when your mind moved onto thinking about homework? If your expecting it to be "bad" then no wonder you put it off - that's very common, but so is credit card debt!
People who are successful are generall those who have learned to do the thingsthat others don't and delay gratification.
There are loads of way you can overcome this habit. But you might start by creating a "homework planning template" basically take some time out and plan the process of how you approach and complete homework - this sounds as boring as hell - but it will really help you clearthe mental fog that drives you to creative avoidance when you begin to think about maybe doinghomework.
The other thing is get used to really experiencing the moment of successfully completing your homework - each the clearer your mind is on these moments of satisfaction the keener it will be to get the job done.
Whene you imagine looking back 15 minutes after successfully complting that work you'd been putting off - what's the best bit of that for you?