The disk accretion of a tidally disrupted star onto a massive black hole