Effects of front surface plasma expansion on proton acceleration in ultraintense laser irradiation of foil targets