You are correct that Modi won popular vote. But this one chancellor who is rather a poster child of being a bad boy won his election too. Note also the fact that only about 50% of the people exercised their vote so there is a large fraction who aren't that enthused about Modi