First, you're too fixated on "loss-making". IPO companies are almost by definition loss-making. IPOs are fundraising events. Growth companies use money to invest in the business for growth, not profits (yet).
Second, it's rare for early investors to cash out on the IPO (Facebook was an exception). Instead, they usually wait for a secondary or for the lockup expiration.
Third, yes, there is frequently an artificial "pop" on the day of the IPO because of the pent-up demand but that usually tempers quickly. Investors should definitely be careful and know what they are getting into. If they bought into Yelp, LinkedIn or even Facebook at the popped price and hung on as long term (read: every) investors should, they are doing fine.
Fourth, yeah, the investment banks get to dole out typically underpriced shares to their top clients. Get over it.
Fifth, the banks do take on some risks. Facebook IPO presented the banks with considerable risk of loss depending on when the banks were able to unwind their positions.
Sixth, the pre-IPO market has evolved such that a lot of people who want in are getting in prior to the IPO.
Feeling cynical might be fun but isn't very attractive or lucrative.