Enhanced ion acceleration by collisionless electrostatic shock in thin foils irradiated by ultraintense laser pulse