Stocks closed higher on Wall Street on Friday, but the market still ended the week lower as inflation worries weighed on investors’ moods earlier in the week. The S&P 500 index added 33.58 points, or 0.7 percent, to end at 4,682.85. While it closed higher, the benchmark index still ended the week down 0.3 percent. It was the first weekly loss for the S&P 500 in six weeks. The Dow Jones Industrial Average rose 179.08 points, or 0.5 percent, to 36,100.31 and the Nasdaq composite closed up 156.68 points, or 1 percent, to end at 15,860.96. The Dow lost 0.6 percent for the week and the Nasdaq lost 0.7 percent. Technology stocks were among the biggest gainers on Friday, with chipmaker Micron Technology rising 3.7 percent and Apple rising 1.4 percent. Communications, industrial, and health care companies also rose. Spectrum Brands, owner of Cutter bug spray and George Foreman grills, …