It's definitely better than risking ear problems, I kept pushing it and had to stay out of the water for well over a month, the ear blockage was driving me insane, you might have to wait for another dive, but still, you made the right call, if something goes wrong with your ear, you would have to stay out of the water for at least 3 months, and there's a strong possibility that you'll have some hearing issues
Another thing you should try next time is to pre-pressurize before you go under the water, just equalize a few times on the surface, it'll help you get the equalizing down, and you'll have some positive pressure in your ear, making equalizing easier
And keep in mind to equalize before you feel any discomfort or pressure while descending, your ears should always feel perfectly fine underwater, so equalize every few feet
Apart from that, as you said, if you ascend and still can't equalize, keep ascending and surface if need be, then try to go down again, it really is a matter of finding your ears rhythm, once you get that down (which takes very very little dives), you'll start doing it without realizing!
Anyway, I hope your ear heals soon, enjoy your dives!