Inelastic neutron scattering study of phonon anomalies in La1.5Sr0.5NiO4