Dynamics of algae blooming: effects of budget allocation and time delay