Effect of inhomogeneities on the fluctuation-induced cusp in the specific heat of high temperature superconductors