yup ur rite! the equation is correct but those two oxygen atoms in the center are there because one came from the alcohol after H was gone and the other came from the acid after OH was gone.....
My friend, the acid loses the H ion only - check the structural formula to understand, the acid loses H and alcohol loses OH.