Oil nears US$50/barrel on inventory data, boosting stocks