Indonesian state oil company Pertamina shut its Balongan oil refinery in West Java as it battles to control a massive fire that broke out.