modified analogWrite to wait for end of conversion

fix for Due analogWrite failing to set one DAC output when called in quick succession for both outputs