Sensex closes 77 points up