Energetics of an rf SQUID Coupled to Two Thermal Reservoirs