In my opinion, Aladdin isn't a good person in the real sense. Although he is the protagonist of the novel, it can't be denied that he is only using the magic lamp to achieve his own goals instead of relying on his real ability.
Sure, I have same feeling as yours because Aladdin impressed me entirely
that he was a poor guy but had a dream that he desired to be princess's husband.