Oil inches up on weaker dollar, low U.S. diesel stocks