BMO FUNCTIONS IN SPACES OF HOMOGENEOUS TYPE