Either British or American English is acceptable for the IELTS Writing test. What matters most is consistency throughout your response. Choose one variant and stick to it throughout the test.