The stock market ended a volatile week on a gloomy note Friday, with the three major U.S. indexes plunging as investors got tripped up in worries like inflation, the Fed’s fight against it and fears of a hard-landing recession.