Theoretical study of the band-gap anomaly of InN