Problem upgrading rtc script

This script worked fine with Arduino 22. After converting send() and receive() with read() and write() to be Arduino 1.0 compatible, I'm getting a "call of overloaded 'write(int)' is ambiguous error and rtc_test_v23:22: error: call of overloaded 'write(int)' is ambiguous
C:\Program Files\arduino-1.0\libraries\Wire/Wire.h:55: note: candidates are: virtual size_t TwoWire::write(uint8_t)
from the following code:

#include "Wire.h"
#define DS1307_ADDRESS 0x68
void setup(){
Wire.begin();
Serial.begin(9600);
}
void loop(){
printDate();
delay(1000);
}
byte bcdToDec(byte val) {
// Convert binary coded decimal to normal decimal numbers
return ( (val/16*10) + (val%16) );
}
void printDate(){
// Reset the register pointer
Wire.beginTransmission(DS1307_ADDRESS);
Wire.write(0); //stop Oscillator
Wire.endTransmission();
Wire.requestFrom(DS1307_ADDRESS, 7);
int second = bcdToDec(Wire.read());
int minute = bcdToDec(Wire.read());
int hour = bcdToDec(Wire.read() & 0b111111); //24 hour time
int weekDay = bcdToDec(Wire.read()); //0-6 -> sunday - Saturday
int monthDay = bcdToDec(Wire.read());
int month = bcdToDec(Wire.read());
int year = bcdToDec(Wire.read());
//print the date EG 3/1/11 23:59:59
Serial.print(month);
Serial.print("/");
Serial.print(monthDay);
Serial.print("/");
Serial.print(year);
Serial.print(" ");
Serial.print(hour);
Serial.print(":");
Serial.print(minute);
Serial.print(":");
Serial.println(second);
}

Any guidance would be appreciated.

  Wire.write(0); //stop Oscillator

Is this supposed to call write(int) or write(const char *)? The compiler can't tell. That is why you must tell it exactly which function you want it to use.

Wire.write((byte)0);

will compile, because the compiler KNOWS which version you want to call.

Thanks PaulS, I really appreciate that, makes sense and more importantly it worked!