hazelwood was in his cabin and an inexperienced third officer was on the bridge when the tanker hit bligh reef and discharged 11 million gallons of crude oil into alaska 's pristine prince william sound .