When I (admittedly half-heartedly) looked into endocrinology 6 or so years ago, it was not considered one of the "competitive" IM subspecialties (such as cardiology and GI). Not to say it's easy to get into, but if you match to an academic IM program and do well, it should't be a problem getting a fellowship.