Any biological process involved in the maintenance of an internal steady state of ammonia at the level of the cell.