Sensex ends flat at 77,541, Nifty at 24,252; Welspun surges 23.4% weekly