Sensex rises 77 points on ₹5,500 cr foreign fund inflows despite oil surge