The allotment of shares in an IPO depends on the demand and supply of the shares in the market. There are different categories of investors who can apply for an IPO, such as qualified institutional buyers (QIBs), non-institutional investors (NIIs), and retail investors.