S&P 500 falls after inflation data as weak quarter nears end