Check your US B2 visa: if there is an annotation saying this visa is only good for travel to the US directly from Canada, then you will not be able to use it to enter the US when you arrive the US from China (which is perhaps what you mentioned in your post). It is all about the US visa.