see if apple will replace it under warranty. They shouldn't make a loud ticking noise (they will make some noise, but if this noise is new then most likely there is something wrong).
Other than that back up your data in preparation of HDD failure. My HDD ticks really loud and has had a few bad sectors, but is still kicking. I'm surprised it is still working.