Chinese court upholds prison term for Internet writer