Oil ends rally with forecast rise in US crude stocks