Enhanced H2O formation through dust grain chemistry in X-ray exposed environments