You can use a type 2 or type 3 SS Anova (found in the car package) that deals specifically with this issue of unbalanced data(by default the anova function in the base package does type I SS. I would suggest you read up on type I,II,II SS to see which one would be appropriate for you. There are no hard rules to this decision and much debate in the statistics community around this.