There are many scenarios to leave a company - in yours you were denied an avenue for self development and if the company has done that once they'll do it again.
Not all companies are good. If one is shitty enough for you to abandon the relationships you built there it isn't worth going back to.