Sorry for my english and sorry I'm a newbie in programming C.
I solved.
int count = 0;
void loop() {
u8g.firstPage();
do {
draw();
} while ( u8g.nextPage() );
delay(2000);
count++;
if (count == 300) {
myFile = SD.open(filename, FILE_WRITE);
myFile.print(timeStamp());
myFile.print(" ");
myFile.print(dht.readHumidity());
myFile.print(" ");
myFile.println(dht.readTemperature());
// close the file:
myFile.close();
Serial.println(" done.");
count = 0;
}